/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.avu.tp.assign2.question3.plk.conforms;

/**
 *
 * @author Malotana
 */
public class Student implements Person {

    private String name;
    private String surname;
    private int studentNumber;
    private Course course;
    private double score;

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void setSurname(String surname) {
        this.surname = surname;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getSurname() {
        return surname;
    }

    public int getStudentNumber() {
        return studentNumber;
    }

    public void setStudentNumber(int studentNumber) {
        this.studentNumber = studentNumber;
    }

    public double getTheScore() {
        score = course.getCourseMark();
        return score;
    }
}